package com.business.system.controller.api;

import com.business.system.service.IClientService;
import com.common.entity.Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/system/client")
public class ApiClientController {
    @Autowired
    private IClientService iClientService;

    @PostMapping("findClientByUsername")
    public Client findClientByUsername(@RequestParam String mobile){
        return iClientService.findClientByUsername(mobile);
    }
    @PostMapping("findAllClientNameAndId")
    public List<Map>  findAllClientNameAndId(){
        return iClientService.findAllClientNameAndId();
    }
}
